//
//  MeFooterV.m
//  YangWifi
//
//  Created by zuoxueliangduyuanzhuo on 2017/6/14.
//  Copyright © 2017年 zuoxueliangduyuanzhuo. All rights reserved.
//

#import "MeFooterV.h"

@interface MeFooterV ()

@property (nonatomic ,weak) IBOutlet UIButton *changeBtn;

@end
@implementation MeFooterV

- (void)buildData
{
    self.changeBtn.selected = [AccountHanler isLogin];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if(self)
    {
        //you init
    }
    return self;
}


+ (MeFooterV *)instanceMeFooterView
{
    NSArray* nibView =  [[NSBundle mainBundle] loadNibNamed:@"MeFooterV" owner:nil options:nil];
    return [nibView objectAtIndex:0];
}

- (IBAction)changeAccount:(id)sender
{
    if (self.footerHandler) {
        self.footerHandler();
    }
}

@end
